package cn.liying.org.service;

import cn.liying.basic.util.PageList;
import cn.liying.org.domain.Department;
import cn.liying.org.query.DepartmentQuery;

import java.util.List;

public interface IDepartmentService {
    /**
     * 分页查询
     */
    //查询当前页数的数据
    PageList<Department> queryData(DepartmentQuery query);

    /**
     * 基础增删改查
     */
    //增
    void save(Department department);
    //删
    void remove(Long id);
    //改
    void update(Department department);
    //查
    List<Department> loadAll();
    //通过id查询
    Department loadById(Long id);
}
